<script setup lang="ts">

</script>

<template>
  <div class="home">
   <div class="logo-box"></div>
    <div class="search-box">
      <input type="text">
      <button>搜索一下</button>
    </div>
     <div class="hot-link">
      热门搜索：
      <router-link to="/search?keyword=黑马程序员">黑马程序员</router-link>
      <router-link to="/search?keyword=前端培训">前端培训</router-link>
      <router-link to="/search?keyword=如何成为前端大牛">如何成为前端大牛</router-link>
    </div>
  </div>
  <div class="top">
    <router-view></router-view>
  </div>
</template>

<style scoped>
body {
  margin: 0;
  padding: 0;
}

.footer_wrap {
  position: relative;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
  background-color: #333;
  color: #ccc;
}

.footer_wrap a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  background-color: #333;
  color: #ccc;
  border: 1px solid black;
}

.footer_wrap a.router-link-active {
  background-color: red;
}

.footer_wrap a:hover {
  background-color: #555;
}
</style>
